package com.jumi.microservice.stock.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author zhangkai
 * @create 2020-08-13 9:42
 **/
@Data
@TableName(value = "stock_material", keepGlobalPrefix = true)
@ApiModel(value = "stock_material对象", description = "仓库物料库存表")
public class StockMaterialDO implements Serializable {
    private static final long serialVersionUID = 5113858826427379221L;
    @ApiModelProperty(value = "仓库物料库存主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @ApiModelProperty(value = "物料id")
    private Long materialId;
    @ApiModelProperty(value = "物料编码")
    private String materialCode;
    @ApiModelProperty(value = "商品id")
    private Long goodsId;
    @ApiModelProperty(value = "商品编码")
    private String goodsCode;
    @ApiModelProperty(value = "仓库id")
    private Long warehouseId;
    @ApiModelProperty(value = "实际入库总量")
    private Integer inStockNum;
    @ApiModelProperty(value = "实际出库总量")
    private Integer outStockNum;
    @ApiModelProperty(value = "真实库存")
    private Integer realStockNum;
    @ApiModelProperty(value = "可用库存")
    private Integer availableStockNum;
    @ApiModelProperty(value = "破损仓数量")
    private Integer damageStockNum;
    @ApiModelProperty(value = "占用数量")
    private Integer occupyNum;
    @ApiModelProperty(value = "预警值")
    private Integer alarmNum;
    @ApiModelProperty(value = "库存报警:0-正常;1-已报警")
    private Boolean alarmed;
    @ApiModelProperty(value = "创建人")
    private String createBy;
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
    @ApiModelProperty(value = "更新人")
    private String updateBy;
    @ApiModelProperty(value = "是否删除:0-不删除;1-删除")
    private Boolean isDel;
}